package com.liangtian.mdm.dm.checkRule.service;

import com.liangtian.mdm.dm.checkRule.model.CheckRule;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface CheckRuleService {

    /**
     * 查詢所有
     *
     * @param model
     * @return
     */
    PageInfo queryAllCheckByCondition(Map<String, Object> map);

    List<CheckRule> queryAllRulesByType(Map<String, Object> map);

    int insertRule(CheckRule checkRule);

    int checkRuleName(CheckRule checkRule);

    CheckRule getById(String id);

    /**
     * 修改
     *
     * @param checkRule
     */
    void updateRule(CheckRule checkRule);

    /**
     * 校驗
     *
     * @param map
     * @return
     */
    int checkRuleEdit(Map<String, String> map);
}
